<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserApplyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_apply', function (Blueprint $table) {
            $table->increments('id');
            $table->integer("user_id")->comment("用户ID");
            $table->string("username",50)->comment("用户名");
            $table->string("phone",20)->comment("联系电话");
            $table->integer("status")->default(0)->comment("审核状态");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_apply');
    }
}
